package com.study.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the anniversary database table.
 * 
 */
@Entity
@NamedQuery(name="Anniversary.findAll", query="SELECT a FROM Anniversary a")
public class Anniversary implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="ann_id")
	private int annId;

	

	@Temporal(TemporalType.DATE)
	@Column(name="ann_date")
	private Date annDate;

	@Column(name="ann_remark")
	private String annRemark;



	//bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name="cus_id")
	private Customer customer;

	//bi-directional many-to-one association to Dictionary
	@ManyToOne
	@JoinColumn(name="ann")
	private Dictionary dictionary;

	//bi-directional many-to-one association to Linkman
	@ManyToOne
	@JoinColumn(name="lin_id")
	private Linkman linkman;
	
	private int adel;
	
	private Date createdate;
	

	public Anniversary() {
	}

	public int getAnnId() {
		return this.annId;
	}

	public void setAnnId(int annId) {
		this.annId = annId;
	}

	public int getAdel() {
		return this.adel;
	}

	public void setAdel(int adel) {
		this.adel = adel;
	}

	public Date getAnnDate() {
		return this.annDate;
	}

	public void setAnnDate(Date annDate) {
		this.annDate = annDate;
	}

	public String getAnnRemark() {
		return this.annRemark;
	}

	public void setAnnRemark(String annRemark) {
		this.annRemark = annRemark;
	}

	public Date getCreatedate() {
		return this.createdate;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public Dictionary getDictionary() {
		return this.dictionary;
	}

	public void setDictionary(Dictionary dictionary) {
		this.dictionary = dictionary;
	}

	public Linkman getLinkman() {
		return this.linkman;
	}

	public void setLinkman(Linkman linkman) {
		this.linkman = linkman;
	}

}